package com.netease.c.a;

public class c extends a
{
  private static final int a = 20;
  private static final int i = 1518500249;
  private static final int j = 1859775393;
  private static final int k = -1894007588;
  private static final int l = -899497514;
  private int b;
  private int c;
  private int d;
  private int e;
  private int f;
  private int[] g = new int[80];
  private int h;

  public c()
  {
    b();
  }

  public c(c paramc)
  {
    super(paramc);
    this.b = paramc.b;
    this.c = paramc.c;
    this.d = paramc.d;
    this.e = paramc.e;
    this.f = paramc.f;
    System.arraycopy(paramc.g, 0, this.g, 0, paramc.g.length);
    this.h = paramc.h;
  }

  private int a(int paramInt1, int paramInt2)
  {
    return paramInt1 << paramInt2 | paramInt1 >>> 32 - paramInt2;
  }

  private int a(int paramInt1, int paramInt2, int paramInt3)
  {
    return paramInt1 & paramInt2 | paramInt3 & (paramInt1 ^ 0xFFFFFFFF);
  }

  private void a(int paramInt1, byte[] paramArrayOfByte, int paramInt2)
  {
    paramArrayOfByte[paramInt2] = (byte)(paramInt1 >>> 24);
    paramArrayOfByte[(paramInt2 + 1)] = (byte)(paramInt1 >>> 16);
    paramArrayOfByte[(paramInt2 + 2)] = (byte)(paramInt1 >>> 8);
    paramArrayOfByte[(paramInt2 + 3)] = (byte)paramInt1;
  }

  private int b(int paramInt1, int paramInt2, int paramInt3)
  {
    return paramInt3 ^ (paramInt1 ^ paramInt2);
  }

  private int c(int paramInt1, int paramInt2, int paramInt3)
  {
    return paramInt1 & paramInt2 | paramInt1 & paramInt3 | paramInt2 & paramInt3;
  }

  protected void a(long paramLong)
  {
    if (this.h > 14)
      c();
    this.g[14] = (int)(paramLong >>> 32);
    this.g[15] = (int)(0xFFFFFFFF & paramLong);
  }

  protected void a(byte[] paramArrayOfByte, int paramInt)
  {
    int[] arrayOfInt = this.g;
    int m = this.h;
    this.h = (m + 1);
    arrayOfInt[m] = ((0xFF & paramArrayOfByte[paramInt]) << 24 | (0xFF & paramArrayOfByte[(paramInt + 1)]) << 16 | (0xFF & paramArrayOfByte[(paramInt + 2)]) << 8 | 0xFF & paramArrayOfByte[(paramInt + 3)]);
    if (this.h == 16)
      c();
  }

  public int b(byte[] paramArrayOfByte, int paramInt)
  {
    a();
    a(this.b, paramArrayOfByte, paramInt);
    a(this.c, paramArrayOfByte, paramInt + 4);
    a(this.d, paramArrayOfByte, paramInt + 8);
    a(this.e, paramArrayOfByte, paramInt + 12);
    a(this.f, paramArrayOfByte, paramInt + 16);
    b();
    return 20;
  }

  public void b()
  {
    super.b();
    this.b = 1732584193;
    this.c = -271733879;
    this.d = -1732584194;
    this.e = 271733878;
    this.f = -1009589776;
    this.h = 0;
    for (int m = 0; m != this.g.length; m++)
      this.g[m] = 0;
  }

  protected void c()
  {
    for (int m = 16; m <= 79; m++)
      this.g[m] = a(this.g[(m - 3)] ^ this.g[(m - 8)] ^ this.g[(m - 14)] ^ this.g[(m - 16)], 1);
    int n = this.b;
    int i1 = this.c;
    int i2 = this.d;
    int i3 = this.e;
    int i4 = this.f;
    int i5 = 0;
    while (i5 <= 19)
    {
      int i16 = 1518500249 + (i4 + (a(n, 5) + a(i1, i2, i3)) + this.g[i5]);
      int i17 = a(i1, 30);
      i5++;
      i1 = n;
      n = i16;
      i4 = i3;
      i3 = i2;
      i2 = i17;
    }
    int i6 = 20;
    while (i6 <= 39)
    {
      int i14 = 1859775393 + (i4 + (a(n, 5) + b(i1, i2, i3)) + this.g[i6]);
      int i15 = a(i1, 30);
      i6++;
      i1 = n;
      n = i14;
      i4 = i3;
      i3 = i2;
      i2 = i15;
    }
    int i7 = 40;
    while (i7 <= 59)
    {
      int i12 = -1894007588 + (i4 + (a(n, 5) + c(i1, i2, i3)) + this.g[i7]);
      int i13 = a(i1, 30);
      i7++;
      i1 = n;
      n = i12;
      i4 = i3;
      i3 = i2;
      i2 = i13;
    }
    int i8 = 60;
    while (i8 <= 79)
    {
      int i10 = -899497514 + (i4 + (a(n, 5) + b(i1, i2, i3)) + this.g[i8]);
      int i11 = a(i1, 30);
      i8++;
      i1 = n;
      n = i10;
      i4 = i3;
      i3 = i2;
      i2 = i11;
    }
    this.b = (n + this.b);
    this.c = (i1 + this.c);
    this.d = (i2 + this.d);
    this.e = (i3 + this.e);
    this.f = (i4 + this.f);
    this.h = 0;
    for (int i9 = 0; i9 != this.g.length; i9++)
      this.g[i9] = 0;
  }

  public String d()
  {
    return "SHA-1";
  }

  public int e()
  {
    return 20;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.c.a.c
 * JD-Core Version:    0.6.0
 */